package com.infodeli.component.listener;


import org.springframework.stereotype.Component;

import javax.servlet.ServletRequestEvent;
import javax.servlet.ServletRequestListener;
import javax.servlet.http.HttpServletRequest;

/*@Component
public class WebSocketListener implements ServletRequestListener {
    @Override
    public void requestInitialized(ServletRequestEvent sre) {
        // 如果没有，就创建一个session，保证一定存在一个session
        ((HttpServletRequest)sre.getServletRequest()).getSession();
    }
    @Override
    public void requestDestroyed(ServletRequestEvent sre) {

    }

}
 */
